/* 已完成订单状态样式 */
 .status-completed {
     background-color: rgba(158, 158, 158, 0.15);
     color: #616161;
 }
 
 /* 加载动画 */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff5000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.order-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.order-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.order-id {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
    margin-right: 10px;
}

.order-date {
    color: #777;
    font-size: 0.9rem;
}

.order-status {
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    text-align: center;
    min-width: 70px;
}

/* 确保状态颜色与JSP中的状态含义匹配 */
.status-pending { /* 已完成 */
    background-color: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.status-shipped { /* 待发货 */
    background-color: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.status-completed { /* 已取消 */
    background-color: rgba(211, 47, 47, 0.15);
    color: #d32f2f;
}

.status-canceled { /* 待付款 */
    background-color: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

.status-onshelf { /* 已上架 */
    background-color: rgba(56, 142, 60, 0.15);
    color: #388e3c;
}

.order-body {
    padding: 20px;
}

.product-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.product-img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #eee;
}

.product-details {
    flex: 1;
}

.product-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.15rem;
    color: #2e2e2e;
}

.product-description {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.product-price {
    color: #e53935;
    font-weight: 700;
    font-size: 1.1rem;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.meta-label {
    color: #777;
    margin-right: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-ship {
    background-color: #ff5000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 100px;
}

.btn-ship:hover {
    background-color: #e54800;
    transform: translateY(-2px);
}

.btn-ship:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    background-color: white;
    color: #ff5000;
    border: 1px solid #ff5000;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 100px;
}

.btn-cancel:hover {
    background-color: #ff5000;
    color: white;
    transform: translateY(-2px);
}

.empty-orders {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.empty-orders i {
    font-size: 5rem;
    color: #d1d3e2;
    margin-bottom: 25px;
}

.order-tabs {
    margin-bottom: 25px;
    border-bottom: 1px solid #dee2e6;
}

.order-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 12px 25px;
    border: none;
    border-radius: 0;
    position: relative;
    transition: all 0.3s;
}

.order-tabs .nav-link:hover {
    color: #ff5000;
}

.order-tabs .nav-link.active {
    color: #ff5000;
    background: none;
}

.order-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff5000;
    border-radius: 3px 3px 0 0;
}


/* 添加已上架状态样式 */
.status-onshelf {
    color: #28a745;
    font-weight: bold;
}

/* 商品操作按钮样式 */
.btn-edit-product {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-off-shelf {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-edit-product:hover, .btn-off-shelf:hover {
    opacity: 0.8;
}

/* 适配现有布局 */
.add-product-header {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.add-product-header h2 {
    color: #ff5000;
    font-weight: 700;
}

.add-product-header p {
    color: #666;
    margin-bottom: 0;
}